import { http } from "@/utils/http";

export const loginService = {
	login: (params) => {
		return http.post("/admin-api/system/auth/appLogin", params);
	},
	// 登出
	loginOut: () => {
		return http.post("/admin-api/system/auth/logout");
	},
	// 根据邮箱获取租户列表
	getTenantListByEmail: (name) => {
		return http.get(`/admin-api/system/tenant/get-by-email?email=${name}`);
	},
	// 获取用户权限信息
	getUserMsg: () => {
		return http.get("/admin-api/system/auth/get-permission-info");
	},
};
